﻿function GetGameById(id)
{
    $.ajax({
        type: "POST",
        url: "Game/GetGameById",
        data: "{'id':'" + id + "'}",
        dataType: "json",
        contentType: "application/json; charset=utf-8",
        success: function (Game) {
            DoLog(Game);
        },
        error: function (str, xhr, ajaxOptions, thrownError) {
           DoLog("Ohh vesen :(")
        }
    });
}

function DoLog(message) {
    if (console)
        console.log(message);
}